#include<iostream>
#include<unistd.h>
#include<string>
#include<sys/types.h>
#include<signal.h>
using namespace std;
void Usage(string s){
cout<<s<<"-number"<<"  pid"<<endl;
}
int main(int argc,char*argv[]){
    if(argc!=3)
    {
        Usage(argv[0]);
        exit(1);
    }
    pid_t id=(pid_t)stoi(argv[2]);
    int i=(int)(argv[1][1]-'0');
    kill(id,i);
}